package com.itheima.tlias84.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SelectAllEmpDTO {
    private int id;
    private String username;
    private String name;
    private String password;
    private Integer gender;
    private Integer job;
    private Integer salary;
    private String image;
    private Integer deptId;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate entryDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
